month_tuple = (31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31)

month = int(input('请输入月份：'))
if 1 <= month <= 12:
    print('%d月有%d天' % (month, month_tuple[month - 1]))
